//
//  DataDefine.swift
//  WineComing
//
//  Created by xiaozhi on 15/8/2.
//  Copyright (c) 2015年 xiaozhi. All rights reserved.
//

import UIKit
public let  WX_APP_ID = "wx0a1bb37673d832fe"
public let  WX_MCH_ID = "1265762901"
public let  WX_API_KEY = "fish20150701fish20150701fish2015"
typealias PointItemObj =     (desc:String?
                        ,iconUrl:String?
                        ,id:String?
                        ,integral:String?
                        ,name:String?)
typealias WineItemObj = (addedTime:String?
                        ,area:String?
                        ,degree:String?
                        ,desc:String?
                        ,iconUrl:String?
                        ,id:String?
                        ,level:String?
                        ,marketPrice:String?
                        ,model:String?
                        ,images:NSArray?
                        ,name:String?
                        ,salesPrice:String?
                        ,bar:String?
                        ,content:String?
                        ,detail:String?
                        ,factory:String?
                        ,importType:String?
                        ,isHot:String?
                        ,isPromotion:String?
                        ,isRecommend:String?
                        ,metrial:String?
                        ,promotionPrice:String?
                        ,selfBar:String?
                        ,storeCond:String?
                        ,year:String?)
typealias WineObj = (ppid:String?,pplx:String?,ppmc:String?,list:[WineItemObj]?)
typealias CartObj = (wine:WineItemObj,number:Int,selected:Bool)
typealias orderItemObj = (id:String?,name:String?,price:String?,type:String?,qty:String?,image:String?,weight:String?)
//orderStatus pending未支付  paid已支付  complete已完成
typealias orderListItemObj = (created_time:String?
                                ,increment_id:String?
                                ,item_count:String?
                                ,status:String?
                                ,statusLabel:String?
                                ,total:String?
                                ,shipping_amount:String?
                                ,items:[orderItemObj]?)
typealias orderCreateObj = (
                            deliveryTime:String?
                            ,authCode:String?
                            ,address:String?
                            ,invoice:String?
                            ,payType:String?
                                ,longitude:String?
                                ,latitude:String?
                          ,invoiceTitle:String?
                            ,invoiceContent:String?
                            ,itemString:String?)
typealias PayObjItems = (order:orderListItemObj?,
                        payData:NSDictionary?)
typealias GoodDetailItem = (
                           cn_price:String?
              ,countryOfManufacture:String?
                        ,finalPrice:String?
                                ,id:String?
                             ,image:String?
                        ,inWishList:String?
                        ,isSaleable:String?
                        ,maxSaleQty:String?
                        ,minSaleQty:String?
                              ,name:String?
                         ,deliverytime:String?
                             ,price:String?
                 ,short_description:String?
                       ,short_title:String?
                         ,tierPrice:String?
                            ,rating_avg:String?
                          ,review_total:String?
                        ,description:String?
                        ,first_commit:NSDictionary?
                    ,litterImage:NSArray?
                            )
typealias cartListItem = (
                finalPrice:String?
                    ,id:String?
                ,image:String?
                ,maxSaleQty:String?
                ,minSaleQty:String?
                        ,name:String?
                        ,pid:String?
                        ,price:String?
                        ,qty:String?
                ,manufacturer:String?
)
typealias orderCheckOutItem = (
    address:NSDictionary?
    ,is_out_country:String?
    ,real:NSDictionary?
    ,items:[cartListItem]?
    ,payment:NSDictionary?
    ,base_total:String?
    ,totals:[NSDictionary]?
    ,total:String?
    ,balance:String?
    ,shipping:NSDictionary?
    ,is_authentication:String?
)
typealias AddressListItem = (
    cn_city:String?
    ,cn_district:String?
    ,cn_province:String?
    ,content:String?
    ,id:String?
    ,postCode:String?
    ,selected:String?
    ,telephone:String?
    ,username:String?
)
typealias BannerObj = (
    bannerimage:String?
    ,id:String?
    ,imgurl:String?
    ,link:String?
    ,store_id:String?
    ,title:String?
)
typealias FavoriteObj = (
    finalPrice:String?
    ,id:String?
    ,image:String?
    ,isSaleable:String?
    ,item_id:String?
    ,name:String?
    ,price:String?
)
typealias CommentObj = (
    review_id:String?
    ,created_at:String?
    ,nickname:String?
    ,customer_id:String?
    ,detail:String?
    ,start_avg:String?
)
typealias DistrictObj = (name:String?,zip_code:String?,code:String?)
typealias CityObj = (code:String?,name:String?,zip_code:String?,phone_code:String?,sub:[DistrictObj]?)
typealias ProviceObj = (code:String?,level:NSNumber?,name:String?,sub:[CityObj]?)
typealias homeCategoryObj = (image:String?,rootName:[NSDictionary]?,name:String?,product:[GoodDetailItem]?)
